
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>育聘智联 - 简历列表</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            background: #f5f7fa;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            color: #333;
        }
        header {
            background: #fff;
            border-bottom: 1px solid #e0e0e0;
            box-shadow: 0 2px 8px rgba(0,113,227,0.05);
            padding: 18px 0;
        }
        .header-content {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .logo {
            display: flex;
            align-items: center;
            font-size: 26px;
            font-weight: 700;
            color: #0071e3;
            text-decoration: none;
        }
        .logo i {
            margin-right: 12px;
        }
        .nav-link {
            color: #0071e3;
            text-decoration: none;
            font-weight: 500;
            margin-left: 30px;
            font-size: 18px;
            transition: color 0.2s;
        }
        .nav-link:hover {
            color: #005bb5;
        }
        .container {
            max-width: 1100px;
            margin: 40px auto 0 auto;
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 4px 20px rgba(0,113,227,0.08);
            padding: 40px 32px 32px 32px;
        }
        h2 {
            text-align: center;
            font-size: 32px;
            font-weight: 700;
            color: #0071e3;
            margin-bottom: 30px;
            letter-spacing: 1px;
        }
        .resume-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 12px;
        }
        th {
            background: #f0f7ff;
            color: #0071e3;
            font-weight: 600;
            padding: 16px 10px;
            border-radius: 12px 12px 0 0;
            font-size: 16px;
        }
        td {
            background: #fff;
            padding: 16px 10px;
            border-radius: 0 0 12px 12px;
            box-shadow: 0 2px 8px rgba(0,113,227,0.05);
            font-size: 15px;
            vertical-align: top;
        }
        .resume-id a {
            color: #0071e3;
            text-decoration: underline;
            font-weight: 600;
        }
        .filename {
            color: #0071e3;
            font-weight: 500;
        }
        .upload-time {
            color: #666;
        }
        .preview {
            max-width: 350px;
            white-space: pre-wrap;
            word-break: break-all;
            color: #333;
            font-size: 14px;
        }
        @media (max-width: 900px) {
            .container, .header-content { max-width: 98vw; padding: 0 8px; }
            .resume-table .preview { max-width: 180px; }
        }
    </style>
</head>
<body>
    <div style="width:100%;background:linear-gradient(90deg,#0071e3 60%,#00c3a0 100%);padding:18px 0 10px 0;box-shadow:0 2px 12px rgba(0,113,227,0.08);">
        <div style="max-width:1200px;margin:0 auto;display:flex;align-items:center;">
            <div style="width:48px;height:48px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;margin-right:16px;box-shadow:0 2px 8px rgba(0,113,227,0.10);">
                <span style="font-size:28px;font-weight:bold;color:#0071e3;">育</span>
            </div>
            <span style="font-size:26px;font-weight:700;color:#fff;letter-spacing:2px;">育聘智联</span>
            <span style="margin-left:32px;font-size:18px;color:#e0f7fa;font-weight:500;">连接企业与顶尖人才，创新招聘新体验</span>
        </div>
    </div>
    <header>
        <div class="header-content">
            <a href="/" class="logo"><i class="fas fa-graduation-cap"></i>育聘智联</a>
            <nav>
                <a href="/" class="nav-link">首页</a>
                <a href="/upload_resume" class="nav-link">上传简历</a>
            </nav>
        </div>
    </header>
    <div class="container">
        <h2><i class="fas fa-list"></i> 简历列表</h2>
        <table class="resume-table">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>文件名</th>
                    <th>上传时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {% for resume in resumes %}
                <tr style="transition:box-shadow 0.2s;box-shadow:0 2px 8px #0071e322;">
                    <td class="resume-id"><a href="/resume/{{ resume[0] }}">{{ resume[0] }}</a></td>
                    <td class="filename">{{ resume[1] }}</td>
                    <td class="upload-time">{{ resume[2] }}</td>
                    <td>
                        <form method="post" action="/delete_resume" style="display:inline;">
                            <input type="hidden" name="resume_id" value="{{ resume[0] }}">
                            <button type="submit" class="delete-btn" onclick="return confirm('确定要删除该简历吗？');">
                                <i class="fas fa-trash-alt"></i> 删除
                            </button>
                        </form>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
            </table>
        </div>
    </body>
    </html>
    <style>
            .resume-table {
                width: 100%;
                border-collapse: separate;
                border-spacing: 0 12px;
                box-shadow: 0 4px 24px #0071e344;
                border-radius: 18px;
                overflow: hidden;
            }
            td {
                background: #fff;
                padding: 16px 10px;
                border-radius: 0 0 12px 12px;
                box-shadow: 0 2px 8px rgba(0,113,227,0.05);
                font-size: 15px;
                vertical-align: top;
                border-bottom: 1px solid #e0e0e0;
            }
            .delete-btn {
                background: #ff4d4f;
                color: #fff;
                border: none;
                border-radius: 8px;
                padding: 8px 18px;
                font-size: 15px;
                cursor: pointer;
                transition: background 0.2s;
            }
            .delete-btn:hover {
                background: #d9363e;
            }
                {% for resume in resumes %}
                <tr>
                    <td class="resume-id"><a href="/resume/{{ resume[0] }}">{{ resume[0] }}</a></td>
                    <td class="filename">{{ resume[1] }}</td>
                    <td class="upload-time">{{ resume[2] }}</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</body>
</html>
